From: ach61@labyrinth.cl.cam.ac.uk Date: Wed, 21 Apr 2004 10:37:03 +0000 (+0000) Subject: bitkeeper revision 1.870 (40864ecfuC78diq7FlE3MwqO1-QlQA) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~18251 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=484fdfaec23a946758d87776e9e0faa5af339e75;p=xen.git bitkeeper revision 1.870 (40864ecfuC78diq7FlE3MwqO1-QlQA) specify a domain's console port in the xc_dom_create defaults file --- diff --git a/tools/examples/defaults b/tools/examples/defaults index 9f1a7874ab..d5a41eebd5 100644 --- a/tools/examples/defaults +++ b/tools/examples/defaults @@ -87,3 +87,7 @@ cmdline_extra = "4 VMID=%d usr=/dev/sda6" % vmid auto_restart = False #auto_restart = True + +# STEP 8. (Optional) Define a console port number for the new domain. + +# console_port = 9610+vmid diff --git a/tools/examples/xc_dom_create.py b/tools/examples/xc_dom_create.py index 9c7b73d94b..2d2030f23e 100755 --- a/tools/examples/xc_dom_create.py +++ b/tools/examples/xc_dom_create.py @@ -87,7 +87,7 @@ image=''; ramdisk=''; builder_fn=''; restore=0; state_file='' mem_size=0; domain_name=''; vfr_ipaddr=[]; vbd_expert=0; auto_restart=False; vbd_list = []; cmdline_ip = ''; cmdline_root=''; cmdline_extra='' -pci_device_list = [] +pci_device_list = []; console_port = -1 auto_console = False ##### Determine location of defautls file @@ -234,7 +234,8 @@ def make_domain(): print "Error creating domain" sys.exit() - cmsg = 'new_control_interface(dom='+str(id)+')' + cmsg = 'new_control_interface(dom='+str(id)+', console_port='+str(console_port)+')' + xend_response = xenctl.utils.xend_control_message(cmsg) if not xend_response['success']: print "Error creating initial event channel"